package codeTest;

import java.io.IOException;

import com.amizah.tooling.utils.console.Console;

public class ConsoleTest {


		public static void main (String [] args)
	    {
	
			boolean b;
			double d = 0 ;
			int i = 0;
			float f = 0;
			
			
			try{
			Console console = new Console();
			console.write("Enter String:");
			String s = console.readString();
			
			console.write(s);
			console.newLine();
			

			console.write("Enter Double:");
			d = console.readDouble();
			console.write(d);
			console.newLine();
			
		       
		        do{	
				console.write("Enter Int:");
			    i = console.readInt();
			    if(console.getErrorFlag() == false){
			    console.write(i);
			    console.newLine();
			    }	
		         
			    else
			    {
			    	console.write(console.getErrorMessage());
			    	console.newLine();
			    }
			    }
			    while(console.getErrorFlag()== true);
	    
						
			console.write("Enter Float:");
			f = console.readFloat();
			console.write(f);
			console.newLine();
			
			console.write("Enter Boolean:");
			b = console.readBoolean();
			console.write(b);
			console.newLine();
			
			
			console.write("End Of App");
			}catch (IOException e)
			{
				e.printStackTrace();
			}
			
	    }
		
		
		
	}

